package com.shiehub.sdk.opengw.encrypt;

import com.alibaba.fastjson.JSON;
import java.util.Map;
import java.util.TreeMap;

/**
 * @Description: 加解密的工具类
 * @Author: guoleijie@shie.com.cn
 * @Since:2016-9-12
 */
public class EncryptUtil {

  /**
   * 针对进行排序
   */
  public static String sortParm(Map<String, Object> inputMap) {
    TreeMap<String, Object> map = new TreeMap<String, Object>(inputMap);
    if (map.get("sign") != null) {
      map.remove("sign");
    }
    return JSON.toJSONString(map);
  }
}
